<!DOCTYPE html>
<!-- saved from url=(0034)https://sns.tianqiapi.com/sns/pass -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="author" content="聊天室系统配置服务 QQ: 445899710 微信: hype522147">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title>微聊</title>
    <link rel="icon" href="https://sns.tianqiapi.com/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="./我的-登录密码_files/weui.min.css">
    <link rel="stylesheet" href="./我的-登录密码_files/layer.css">
    <link rel="stylesheet" href="./我的-登录密码_files/app.css">
        <style>
        body {
            background: #ededed;
        }
    </style>
<link rel="stylesheet" href="./我的-登录密码_files/layer(1).css" id="layuicss-layer"></head>
<body>
    <div class="navbar">登录密码<img class="btnleft" src="./我的-登录密码_files/left.png"></div>
    <div class="line35"></div>

        <div class="weui-cells__title">设置登录密码</div>
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <input class="weui-input" type="number" name="paypass" id="paypass" placeholder="请输入登录密码">
                </div>
            </div>
        </div>
        <div style="padding: 20px">
            <a href="javascript:setpaypass();" class="weui-btn weui-btn_block weui-btn_primary">确定</a>
        </div>
    
<script type="text/javascript" src="./我的-登录密码_files/jquery.min.js"></script>
<script type="text/javascript" src="./我的-登录密码_files/layer.js"></script>
<script type="text/javascript" src="./我的-登录密码_files/app.js"></script>
    <script type="text/javascript">
        function setpaypass() {
            var paypass = $('#paypass').val();
            if (paypass == '') {
                layer.msg('请输入支付密码');
                return;
            }
            $.ajax({
                type: 'POST',
                url: '/sns/pass',
                data: 'paypass=' + paypass,
                dataType: 'JSON',
                error: function () {
                    layer.alert('网络错误');
                },
                success: function (res) {
                    if (res.errcode == 0) {
                        layer.msg(res.errmsg);
                        setTimeout(function () {
                            history.go(-1)
                        }, 500)
                    } else {
                        layer.msg(res.errmsg);
                    }
                }
            });
        }
    </script>

</body></html>